package com.supermarket.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.supermarket.entity.Bill;
import com.supermarket.entity.Provider;
import com.supermarket.util.R;
import java.util.List;

import java.util.Map;

public interface BillService extends IService<Bill> {
    R<Object> getBillList(Integer currentPage, Integer pageSize, String billCode, String productName, String proName);
    void addBill(Bill bill);
    void updateBill(Bill bill);
    Bill getBillById(Long id);
    void deleteBill(Long id);
    
    // 获取统计数据
    R<Map<String, Object>> getDashboardStats();

    List<Provider> getAllProviders(); // 添加获取供应商列表方法

    boolean existsByBillCode(String billCode);

}
